# $OpenBSD: Makefile,v 1.7 2017/06/06 09:24:31 benoit Exp $

COMMENT =	nice console editor
DISTNAME =	ne-3.1.1
CATEGORIES =	editors

HOMEPAGE =	http://ne.di.unimi.it/
MAINTAINER =	Brian Callahan <bcallah@devio.us>

# GPLv3+
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB += c curses m

MASTER_SITES =	http://ne.di.unimi.it/

USE_GMAKE =	Yes
MAKE_FILE =	makefile
MAKE_FLAGS =	CC="${CC}" OPTS="${CFLAGS}"
ALL_TARGET =	build

NO_TEST =	Yes

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/ne ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/doc/ne.1 ${PREFIX}/man/man1
	${INSTALL_DATA_DIR} ${PREFIX}/share/ne/{macros,syntax}
	${INSTALL_DATA} ${WRKSRC}/syntax/*.jsf ${PREFIX}/share/ne/syntax
	${INSTALL_DATA} ${WRKSRC}/macros/* ${PREFIX}/share/ne/macros
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ne
	${INSTALL_DATA} \
		${WRKSRC}/{README.md,COPYING,NEWS,CHANGES,doc/ne.{txt,pdf}} \
		${PREFIX}/share/doc/ne

.include <bsd.port.mk>
